<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<style>
    .box {
        height: 200px;
        width: 200px;
        /* background-color: red; */
    }
</style>

<body>
    <div id="app">
        <div e-if="isShow1" style="background-color: aqua;" class="box" @click="handleChange">
            <p>1</p>
        </div>

        <div e-show="isShow2" style="background-color: blue;" class="box">
            <p>2</p>
        </div>

        <div e-if="isShow3" style="background-color: blueviolet;" class="box" @click="handleChange2">
            <p>3</p>
        </div>

        <div e-show="isShow4" style="background-color: chartreuse;" class="box">
            <p>4</p>
        </div>
    </div>
</body>

<script src="../../dist/easy.js"></script>
<script>
    const app = new Easy({
        el:"#app",
        data:{
            isShow1:false,
            isShow2:false,
            isShow3:true,
            isShow4:false
        },
        methods: {
            handleChange(){
                // this.data.isShow1 = !this.data.isShow1
                this.data.isShow4 = !this.data.isShow4
            },
            handleChange2(){
                this.data.isShow1 = !this.data.isShow1
            }
        },
    })
</script>
</html>